package com.lovcreate.shop.mgt.response;


/**
 * 文件名：BaseResponse
 * 创建人：高博
 * 创建日期 2016-12-20
 * 描  述：Response基類
 * 版本号： 1.0
 **/
public class BaseResponse {

    private static final Double VERSION = 1.0;

    /**
     * 结果
     */
    private Boolean ret;

    /**
     * 版本号
     */
    private Double ver;

    /**
     * 返回信息,中文
     */
    private String message;
    /**
     * cout
     */
    private int count;

    /**
     * 返回数据
     */
    private Object data;


    public BaseResponse(Boolean ret, String message,Object data) {
        this.ret = ret;
        this.ver = VERSION;
        this.message = message;
        this.data = data;


    }
    public BaseResponse(Boolean ret, String message,int count,Object data) {
        this.ret = ret;
        this.ver = VERSION;
        this.message = message;
        this.data = data;
        this.count=count;
    }

    public BaseResponse(Boolean ret, String message) {
        this.ret = ret;
        this.ver = VERSION;
        this.message = message;
    }

    public Boolean getRet() {
        return ret;
    }

    public void setRet(Boolean ret) {
        this.ret = ret;
    }

    public static Double getVERSION() {
        return VERSION;
    }

    public Double getVer() {
        return ver;
    }

    public void setVer(Double ver) {
        this.ver = ver;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }


    public BaseResponse() {

    }

}
